package com.lancer.cloud.user.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lancer.cloud.common.base.controller.BaseController;
import com.lancer.cloud.common.response.ApiResponse;
import com.lancer.cloud.user.entity.SysZuulRoute;
import com.lancer.cloud.user.entity.vo.SysZuulRouteQuery;
import com.lancer.cloud.user.service.SysZuulRouteService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author caijinbang
 * @date 2019-04-24 11:26
 */
@RestController
@RequestMapping("/route")
@Api(value = "zuul路由controller", tags = {"zuul路由操作接口"})
public class SysZuulRouteController extends BaseController{

    @Autowired
    private SysZuulRouteService sysZuulRouteService;

    /**
     * 保存数据
     */
    @ApiOperation(value = "添加", httpMethod = "POST")
    @PostMapping
    public ApiResponse<Boolean> save(SysZuulRoute sysZuulRoute) {
        return new ApiResponse<>(sysZuulRouteService.save(sysZuulRoute));
    }

    /**
     * 修改数据
     */
    public ApiResponse<Boolean> update(SysZuulRoute sysZuulRoute) {
        return null;
    }

    /**
     * 删除数据
     */
    public ApiResponse<Boolean> delete(Integer id) {
        return null;
    }

    /**
     * 根据主键查询数据
     */
    public ApiResponse<SysZuulRoute> getSysRoleInfo(Integer id) {
        return null;
    }

    /**
     * 分页数据
     */
    public ApiResponse<IPage<SysZuulRoute>> pageByQuery(SysZuulRouteQuery sysRoleQuery) {
        return null;
    }

    /**
     * 查询所有数据
     */
    public ApiResponse<Collection<SysZuulRoute>> selectAll() {
        return null;
    }
}
